package com.pojo.order.service;

import com.pojo.order.entity.Ticket;
import com.pojo.order.feign.TicketFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TicketService {

    @Autowired
    private TicketFeignClient ticketFeignClient;

    public Map<Long, Ticket> getRestTicket() {
        String itemUrl = "http://app-item/item/restTicket";
        Map<Long, Ticket> result = ticketFeignClient.getRestTicket();
        return result;
    }
}


